package com.autism.day02.redpackage;

public class User {
    private double amount;
    private String name;

    public User() {
    }

    public User(double amount, String name) {
        this.amount = amount;
        this.name = name;
    }

    public void show() {
        System.out.println("name:" + name + "amount:" + amount);
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
